package com.gkt.ec.ws.activity.model.domain;

/**
 * @author Huzl
 * @version 1.0.0
 */
public class CompanyActivityEntity {
    private long companyId;
    private long activityId;

    public long getCompanyId() {
        return companyId;
    }

    public CompanyActivityEntity setCompanyId(long companyId) {
        this.companyId = companyId;
        return this;
    }

    public long getActivityId() {
        return activityId;
    }

    public CompanyActivityEntity setActivityId(long activityId) {
        this.activityId = activityId;
        return this;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CompanyActivityEntity that = (CompanyActivityEntity) o;

        if (companyId != that.companyId) return false;
        if (activityId != that.activityId) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = (int) (companyId ^ (companyId >>> 32));
        result = 31 * result + (int) (activityId ^ (activityId >>> 32));
        return result;
    }
}
